home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / u_man / cat3 / Tk / after.z / after
Text File  |  1998-10-30  |  5KB  |  133 lines

  1.  
  2.  
  3.  
  4. aaaafffftttteeeerrrr((((3333TTTTkkkk))))                                                          aaaafffftttteeeerrrr((((3333TTTTkkkk))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      after - Execute a command after a time delay
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      aaaafffftttteeeerrrr _m_s
  13.      aaaafffftttteeeerrrr _m_s ?_s_c_r_i_p_t _s_c_r_i_p_t _s_c_r_i_p_t ...?
  14.      aaaafffftttteeeerrrr ccccaaaannnncccceeeellll _i_d                                                          |
  15.      aaaafffftttteeeerrrr ccccaaaannnncccceeeellll _s_c_r_i_p_t _s_c_r_i_p_t _s_c_r_i_p_t ...                                    |
  16.      aaaafffftttteeeerrrr iiiiddddlllleeee ?_s_c_r_i_p_t _s_c_r_i_p_t _s_c_r_i_p_t ...?
  17.  
  18.  
  19. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  20.      This command is used to delay execution of the program or to execute a
  21.      command in background after a delay.  It has several forms, depending on
  22.      the first argument to the command:
  23.  
  24.      aaaafffftttteeeerrrr _m_s
  25.           _M_s must be an integer giving a time in milliseconds.  The command
  26.           sleeps for _m_s milliseconds and then returns.  While the command is
  27.           sleeping the application does not respond to X events or any other
  28.           events.
  29.  
  30.      aaaafffftttteeeerrrr _m_s ?_s_c_r_i_p_t _s_c_r_i_p_t _s_c_r_i_p_t ...?
  31.           In this form the command returns immediately, but it arranges for a
  32.           Tcl command to be executed _m_s milliseconds later as a background
  33.           event handler.  The delayed command is formed by concatenating all
  34.           the _s_c_r_i_p_t arguments in the same fashion as the ccccoooonnnnccccaaaatttt command.  The
  35.           command will be executed at global level (outside the context of any
  36.           Tcl procedure).  If an error occurs while executing the delayed
  37.           command then the ttttkkkkeeeerrrrrrrroooorrrr mechanism is used to report the error.  The
  38.           aaaafffftttteeeerrrr command returns an identifier that can be used to cancel the
  39.           delayed command using aaaafffftttteeeerrrr ccccaaaannnncccceeeellll.
  40.  
  41.      aaaafffftttteeeerrrr ccccaaaannnncccceeeellll _i_d
  42.           Cancels the execution of a delayed command that was previously      |
  43.           scheduled.  _I_d indicates which command should be canceled;  it must |
  44.           have been the return value from a previous aaaafffftttteeeerrrr command.  If the   |
  45.           command given by _i_d has already been executed then the aaaafffftttteeeerrrr ccccaaaannnncccceeeellll |
  46.           command has no effect.
  47.  
  48.      aaaafffftttteeeerrrr ccccaaaannnncccceeeellll _s_c_r_i_p_t _s_c_r_i_p_t ...
  49.           This command also cancels the execution of a delayed command.  The  |
  50.           _s_c_r_i_p_t arguments are concatenated together with space separators    |
  51.           (just as in the ccccoooonnnnccccaaaatttt command).  If there is a pending command that|
  52.           matches the string, it is cancelled and will never be executed;  if |
  53.           no such command is currently pending then the aaaafffftttteeeerrrr ccccaaaannnncccceeeellll command  |
  54.           has no effect.
  55.  
  56.      aaaafffftttteeeerrrr iiiiddddlllleeee _s_c_r_i_p_t ?_s_c_r_i_p_t _s_c_r_i_p_t ...?
  57.           Concatenates the _s_c_r_i_p_t arguments together with space separators    |
  58.           (just as in the ccccoooonnnnccccaaaatttt command), and arranges for the resulting     |
  59.           script to be evaluated later as an idle handler (the script runs the|
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. aaaafffftttteeeerrrr((((3333TTTTkkkk))))                                                          aaaafffftttteeeerrrr((((3333TTTTkkkk))))
  71.  
  72.  
  73.  
  74.           next time the Tk event loop is entered and there are no events to   |
  75.           process).  The command returns an identifier that can be used to    |
  76.           cancel the delayed command using aaaafffftttteeeerrrr ccccaaaannnncccceeeellll.  If an error occurs  |
  77.           while executing the script then the ttttkkkkeeeerrrrrrrroooorrrr mechanism is used to    |
  78.           report the error.
  79.  
  80.  
  81. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  82.      tkerror
  83.  
  84.  
  85. KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
  86.      cancel, delay, sleep, time
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.